package com.ruoyi.jhc.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.jhc.mapper.JhcFqMapper;
import com.ruoyi.jhc.domain.JhcFq;
import com.ruoyi.jhc.service.IJhcFqService;

/**
 * 附企进耗存录入Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-04-07
 */
@Service
public class JhcFqServiceImpl implements IJhcFqService 
{
    @Autowired
    private JhcFqMapper jhcFqMapper;

    /**
     * 查询附企进耗存录入
     * 
     * @param cDate 附企进耗存录入主键
     * @return 附企进耗存录入
     */
    @Override
    public JhcFq selectJhcFqByCDate(String cDate)
    {
        return jhcFqMapper.selectJhcFqByCDate(cDate);
    }

    /**
     * 查询附企进耗存录入列表
     * 
     * @param jhcFq 附企进耗存录入
     * @return 附企进耗存录入
     */
    @Override
    public List<JhcFq> selectJhcFqList(JhcFq jhcFq)
    {
        return jhcFqMapper.selectJhcFqList(jhcFq);
    }

    /**
     * 新增附企进耗存录入
     * 
     * @param jhcFq 附企进耗存录入
     * @return 结果
     */
    @Override
    public int insertJhcFq(JhcFq jhcFq)
    {
        return jhcFqMapper.insertJhcFq(jhcFq);
    }

    /**
     * 修改附企进耗存录入
     * 
     * @param jhcFq 附企进耗存录入
     * @return 结果
     */
    @Override
    public int updateJhcFq(JhcFq jhcFq)
    {
        return jhcFqMapper.updateJhcFq(jhcFq);
    }

    /**
     * 批量删除附企进耗存录入
     * 
     * @param cDates 需要删除的附企进耗存录入主键
     * @return 结果
     */
    @Override
    public int deleteJhcFqByCDates(String[] cDates)
    {
        return jhcFqMapper.deleteJhcFqByCDates(cDates);
    }

    /**
     * 删除附企进耗存录入信息
     * 
     * @param cDate 附企进耗存录入主键
     * @return 结果
     */
    @Override
    public int deleteJhcFqByCDate(String cDate)
    {
        return jhcFqMapper.deleteJhcFqByCDate(cDate);
    }
}
